home *** CD-ROM | disk | FTP | other *** search
- /*
-
- WARNING!!!!!!! this program will not run as it is now written.
- Read the documentation on "Embedding Resource Files" to learn
- how to use this sample file.
-
- */
-
- #include "pro.h"
- #include "xglobals.h"
- #include "dbpro.h"
- #include "dbbuild.h"
-
-
- static unsigned char head = 0, tail = 0;
- static unsigned int queue[256];
-
- void init_dbpro()
- {
- /* initialize The WINDOW PRO - required */
- wn_init();
-
- /* initialize The DB PRO message queue - required */
- db_switchqueue(&head, &tail, queue);
- }
-
- main(argv,argc)
- int argv;
- char *argc[];
- {
- dialog_box *db_ptr;
-
- init_dbpro();
-
- db_ptr = create_db(argc[0],0L,argc[0],0L,atoi(argc[1]));
- db_run(db_ptr,0);
- }